package common.utilities 
{
	/**
	 * ...
	 * @author Luke Van In
	 */
	public class Convert 
	{
		
		/**
		 * Constructor
		 * Note: this class consists of static methods only
		 * 
		 * @param	singleton
		 */
		public function Convert(singleton:Singleton) 
		{
			
		}
		
		
		
		/**
		 * Parses a string as a date
		 * 
		 * @param	s
		 * @return
		 */
		public static function stringToDate(s:String):Date
		{
			return new Date(Date.parse(s));
		}
		
		
		
		/**
		 * Parses a string as an integer
		 * 
		 * @param	s
		 * @param	radix		
		 * @return
		 */
		public static function stringToInt(s:String, radix:int = 10):int
		{
			return parseInt(s, radix);
		}
	}

}



class Singleton
{
	
}